package edu.nf.ch09.controller;

import edu.nf.ch09.service.UserService;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

/**
 * @author wangl
 * @date 2025/4/29
 */
@Controller
//@Scope("prototype")
public class UserController {

    private UserService userService;

    public UserController(UserService userService) {
        this.userService = userService;
    }

    public void save() {
        System.out.println(userService);
        userService.add();
    }
}